package com.oz.mapper;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oz.entity.DemoEntity;

@Mapper
public interface DemoMapper extends BaseMapper<DemoEntity> {



//	@Select("<script>" 	
//			+ "SELECT id,author,name,region,imgs,date1,date2,delivery,classify,resource,remarks FROM `JUST_DEMO` " 
//			+ 	"<if test = ' ew != null and ew.customSqlSegment != null '>  "
//			+ 		"${ew.customSqlSegment} "
//			+ 	"</if>"
//			
//			+ 	"<if test = ' tops != null and tops.length > 0 and tops[0].length != 0 '>"
//			+ 		"<if test = ' ew != null and ew.expression.orderBy.size() != 0  '>,</if>"
//			+ 		"<if test = ' ew != null and ew.expression.orderBy.size() == 0  '> ORDER BY </if>"
//			+ 		"<foreach item='topID' collection='tops[0]' open='' separator=',' close=''>"
//			+ 			"ID='${topID}' DESC"
//			+ 		"</foreach>"
//			+ 	"</if>"
//			
//			+ "</script>")
//	@Results({ 
//				@Result(property = "id", column = "id"),
//				@Result(property = "author", column = "{ user_id = AUTHOR }", one = @One(select = "com.oz.space.mapper.UserMapper.selectOneById", fetchType = FetchType.LAZY)),			
//			})
////	@SelectProvider(type = DemoOrderBySqlBuilder.class,method="selectSql")
//	<P extends IPage<DemoEntity>> P selectPageWithAuthor(P page, @Param("ew") Wrapper<DemoEntity> queryWrapper,String[]... tops);

}

